﻿using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Volo.Abp.Domain.Repositories;

namespace Acme.BookStore2
{
    public interface IVehicleDriveRecordRepository : IBasicRepository<VehicleDriveRecord, Guid>
    {
        Task<List<VehicleDriveRecord>> GetPagedListAsync(
            int skipCount,
            int maxResultCount,
            string sorting,
            Guid? vehicleId = null,
            bool includeDetails = false,
            CancellationToken cancellationToken = default);
        
        Task<long> GetCountAsync(
            Guid? vehicleId = null,
            CancellationToken cancellationToken = default);
    }
}